<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				webNo : {	required : true	},
webSign : {	required : true	},
webAddress : {	required : true	},
webDescript : {	required : false	},
webState : {	required : true	},
webDate : {	required : true	},
webVstate : {	required : true	},
webVdate : {	required : true	},
webRemark : {	required : false	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","#1c3e57");
			},
		});
	});
</script>
</head>
<body>
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="website_save.html" method="post" enctype="multipart/form-data">
		<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr><td height="30" align="right">编号 : </td><td><input type="text" placeholder="编号" name="webNo" id="webNo" value="<s:property value="websiteBean.webNo"/>"/></td><td>网站编号,由4位商户号,2位子账户号加4位顺序数字组成</td></tr>
<tr><td height="30" align="right">网站标识 : </td><td><input type="text" placeholder="网站标识" name="webSign" id="webSign" value="<s:property value="websiteBean.webSign"/>"/></td><td>网站标识,可以存储商户自定义的标识字符以便于网站分类</td></tr>
<tr><td height="30" align="right">网站地址 : </td><td><input type="text" placeholder="网站地址" name="webAddress" id="webAddress" value="<s:property value="websiteBean.webAddress"/>"/></td><td>网站地址,不包含http://或者https://协议头部</td></tr>
<tr><td height="30" align="right">网站描述 : </td><td><input type="text" placeholder="网站描述" name="webDescript" id="webDescript" value="<s:property value="websiteBean.webDescript"/>"/></td><td>网站描述,主要用来记录网站所销售的产品类型</td></tr>
<tr><td height="30" align="right">是否可用 : </td><td><s:radio id="webState" name="webState" list="#{'0':'无效','1':'有效'}"  value="websiteBean.webState"></s:radio></td><td>是否可用</td></tr>
<tr><td height="30" align="right">创建日期 : </td><td><input type="text" placeholder="创建日期" name="webDate" id="webDate" value="<s:if test="websiteBean.webDate!=null"><s:text name="global.format.date"><s:param value="websiteBean.webDate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>创建日期</td></tr>
<tr><td height="30" align="right">审核状态 : </td><td><s:radio id="webVstate" name="webVstate" list="#{'0':'无效','1':'有效'}"  value="websiteBean.webVstate"></s:radio></td><td>审核状态</td></tr>
<tr><td height="30" align="right">审核日期 : </td><td><input type="text" placeholder="审核日期" name="webVdate" id="webVdate" value="<s:if test="websiteBean.webVdate!=null"><s:text name="global.format.date"><s:param value="websiteBean.webVdate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>审核日期</td></tr>
<tr><td height="30" align="right">网站备注 : </td><td><input type="text" placeholder="网站备注" name="webRemark" id="webRemark" value="<s:property value="websiteBean.webRemark"/>"/></td><td>网站备注,一般用来记录审核拒绝的禁用原因</td></tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
	</form>
    </div>
</body>
</html>

